package com.example.github.io.stream.in;

import java.io.FileInputStream;

public class InputStreamTest {
    public static void main(String[] args) {
        try {
            FileInputStream fi = new FileInputStream("D:/logs/test.txt");
            // int read = fi.read();
            // System.out.print((char)read);
            int i = 0;
            while ((i = fi.read()) != -1) {
                System.out.print((char)i);
            }
            System.out.println();
            fi.close();

        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
